Skip to content

[DO-NOT-MERGE] [vcpkg-scripts] Update CMake to 4.0.0-rc2#44147

Closed
WangWeiLin-MV wants to merge 1 commit intomicrosoft:masterfrom
WangWeiLin-MV:scripts/vcpkg-tools-json/cmake-4.0.0
Closed

[DO-NOT-MERGE] [vcpkg-scripts] Update CMake to 4.0.0-rc2#44147
WangWeiLin-MV wants to merge 1 commit intomicrosoft:masterfrom
WangWeiLin-MV:scripts/vcpkg-tools-json/cmake-4.0.0

Conversation

@WangWeiLin-MV
Copy link
Contributor

No description provided.

@WangWeiLin-MV WangWeiLin-MV added info:internal category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly labels Mar 4, 2025
@WangWeiLin-MV
Copy link
Contributor Author

WangWeiLin-MV commented Mar 4, 2025

Related


Tested x64-linux, 309 ports failed.

Checked 304 ports failed in logs https://dev.azure.com/vcpkg/public/_build/results?buildId=113107&view=artifacts&pathAsName=false&type=publishedArtifacts

'.\failure logs for x64-linux\' `
| Get-ChildItem `
| Where-Object { `
$null -eq `
((Get-Content (ls $_/*.log)) | Select-String -Quiet 'Compatibility with CMake < 3.5 has been removed from CMake.') `
}

excepts lemon-parser-generator,log4cpp-log4cpp,ned14-internal-quickcpplib,physx,zkpp

@WangWeiLin-MV WangWeiLin-MV added the depends:different-pr This PR or Issue depends on a PR which has been filed label Mar 4, 2025
@WangWeiLin-MV WangWeiLin-MV changed the title [vcpkg-scripts] Update CMake to 4.0.0 [DO-NOT-MERGE] [vcpkg-scripts] Update CMake to 4.0.0 Mar 5, 2025
@WangWeiLin-MV WangWeiLin-MV changed the title [DO-NOT-MERGE] [vcpkg-scripts] Update CMake to 4.0.0 [DO-NOT-MERGE] [vcpkg-scripts] Update CMake to 4.0.0-rc2 Mar 5, 2025
@WangWeiLin-MV
Copy link
Contributor Author

There were more than 300 ports failed in triplet x64-linux and CMake 4.0.0-rc2

CMake Error at CMakeLists.txt:24 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

These also can be reproduced when both:

  • No {VCPKG_DOWNLOADS}/tools/cmake-3.30.1-linux/ cached
  • CMake version 4.0 rc in environment PATH

@JavierMatosD cc. @BillyONeal @vicroms Would you please help look into this issue?

@Neumann-A
Copy link
Contributor

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

Just force it into vcpkg-cmake if the CMAKE_VERSION is high enough?

@WangWeiLin-MV WangWeiLin-MV closed this by deleting the head repository Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly depends:different-pr This PR or Issue depends on a PR which has been filed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants